{echo:JS::import('dialog?skin=brief');}
{echo:JS::import('dialogtools');}
{echo:JS::import('form');}
<form action="" method="post">
<div class="tools_bar clearfix">
    <a class="icon-checkbox-checked icon-checkbox-unchecked" href="javascript:;" onclick="tools_select('id[]',this)" title="全选" data="true"> 全选 </a>
    <a class="icon-delicious" href="{url:/customer/jjmx_list}"> 全部记录</a>
    <span class="fr"><a href='javascript:;' id="condition" class="icon-search" style="" > 筛选条件</a><input id="condition_input" type="hidden" name="condition" value="{$condition}"></span>
</div>
<table class="default" >
    <tr>
    	<!-- 
        <th>操作</th>
        -->
        <th>用户</th>
        <th>来源</th>
        <th>分红奖</th>
        <th>分享奖</th>
        <th>实际到帐分享奖</th>
        <th>管理奖</th>
        <th>推广额度</th>
        <th>消费积分(冻结)</th>
        <th>云积分</th>
        <th>时间</th>
            
    </tr>
    {query:name=jjmx as wd fields=wd.*,us.name as uname join= inner join user as us on wd.user_id eq us.id where= $where id=$obj page=1 order=id desc pagesize=20 }
        <tr>
        <!-- 
        <td style="width:70px" class="btn_min"></td>
		-->
        <td>{$item['uname']}</td>
        <td>{$item['from']}</td>
        <td>
        	{if:$item['fhj']>0}
        		<b style="color:red">
        			{$item['fhj']}
        		</b>
        	{else:}
        		{$item['fhj']}
        	{/if}
        </td>
        <td>
        	{if:$item['fxj']>0}
        		<b style="color:red">
        			{$item['fxj']}
        		</b>
        	{else:}
        		{$item['fxj']}
        	{/if}
        </td>
        <td>
        	{if:$item['real_fxj']>0}
        		<b style="color:red">
        			{$item['real_fxj']}
        		</b>
        	{else:}
        		{$item['real_fxj']}
        	{/if}
        </td>
        <td>
        
        	{if:$item['glj']>0}
        		<b style="color:red">
        			{$item['glj']}
        		</b>
        	{else:}
        		{$item['glj']}
        	{/if}
        </td>
        <td>
        	{if:$item['extend_je']>0}
        		<b style="color:red">
        			{$item['extend_je']}
        		</b>
        	{else:}
        		{$item['extend_je']}
        	{/if}
        </td>
        <td>
        	{if:$item['dj_xfjf']>0}
        		<b style="color:red">
        			{$item['dj_xfjf']}
        		</b>
        	{else:}
        		{$item['dj_xfjf']}
        	{/if}
        </td>
        <td>
        	{if:$item['cloud_point']>0}
        		<b style="color:red">
        			{$item['cloud_point']}
        		</b>
        	{else:}
        		{$item['cloud_point']}
        	{/if}
        </td>
        <td>{$item['jjtime']}</td>
        </tr>
    {/query}
</table>
</form>
<div class="page_nav">
{echo:$obj->pageBar()}
</div>
<script type="text/javascript">
    var form =  new Form();
    $("#condition").on("click",function(){
        $("body").Condition({input:"#condition_input",okVal:'高级搜索',callback:function(data){tools_submit({action:'{url:/customer/jjmx_list}',method:'get'});},data:{'us.name':{name:'用户名'},'from':{name:'来源'},fxj:{name:'分享奖'},glj:{name:'管理奖'},extend_je:{name:'推广额度'},dj_xfjf:{name:'消费积分(冻结)'},cloud_point:{name:'云积分'},jjtime:{name:'时间'}
        }});
    });
    function withdrawAction(id)
    {
        art.dialog.open("{url:/customer/withdraw_view/id/}"+id,{id:'withdraw-dialog',title:"审批",width:620});
    }
    function close_dialog()
    {
        art.dialog({id:"withdraw-dialog"}).close();
        tools_reload();
    }
</script>
